﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Xml.Linq;

/// <summary>
/// Summary description for USerBL
/// </summary>
public class USerBL
{
    public static bool ValidateUser(string username, string password)
    {
        UserDAO user = new UserDAO();
        return user.ValidateUser(username, EncodePassword(password));
    }

    public static string EncodePassword(string password)
    {
        return Utils.DC.Web.UI.Security.Encrypt(password);
    }   
}
